<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        var obj ={
            name:"呵呵",
            age:19,
            fun(){
                alert(this.name+this.age);
            }
        }

        obj.fun();
    </script>
</head>
<body>

</body>
</html>